package com.gallsoft.games.bennyadv;

import com.gallsoft.games.framework.gamedev2d.GameObject;

public class DisplayMessage {

    String message;
    float stateTime;
    float displayTime;
    float x, y;
    
    public DisplayMessage(String message, float deltaTime, float displayTime, float x, float y) {
        this.message = message;
        this.stateTime = 0;
        this.displayTime = displayTime;
        this.x = x;
        this.y = y;
    }
    
    public boolean update(float deltaTime) {
        stateTime += deltaTime;
        
        if (stateTime > displayTime)
            return false;
        else
            return true;
    }
}
